﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Data.Linq;
using System.Web;
using System.Web.UI.WebControls;

/// <summary>
/// Summary description for CollectionInfo
/// </summary>
public partial class CollectionInfo : Dimok.Web.UI.UserControlEx{
	protected void Deferment_Selecting(object sender, LinqDataSourceSelectEventArgs e) {
		var res = from t in new Data.LINQ.MotoBank().reports_V_Deferments
							where t.UsixID == e.WhereParameters["UsixID"] && t.CompanyID == (int)e.WhereParameters["CompanyID"]
							select t;
		e.Result = res.Take(1);
	}
}
